<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			/*
		     if(逻辑表达式){  //逻辑表达式结果是boolean类型
				 代码;
			 }
			 
            如果结果为true,则执行代码块
		   */
			var num = 6;
			if (num > 9) {
				// console.log(num);
			}
			// console.log("end");

			//根据用户的输入,输出对应是周几

			var week = prompt("请输入数字");
			if (week == 1) {
				console.log("周一");
			}
			if (week == 2) {
				console.log("周二");
			}
			if (week == 3) {
				console.log("周三");
			}
			if (week == 4) {
				console.log("周四");
			}
			if (week == 5) {
				console.log("周五");
			}

			/* if (true) {
				if (false) {
					if (true) {
						console.log("66")
					}
				}
			} */
		</script>
	</head>
	<body>
	</body>
</html>
